package ioc05;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Author：汤小洋
 * Date：2023-08-10 15:54
 * Description：<描述>
 */
public class Test {
    public static void main(String[] args) {
        // 创建容器并获取容器
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("ioc05/spring.xml");

        // System.out.println(ac.getBean(SpringBean.class) == ac.getBean(SpringBean.class));
        //
        // // 销毁容器
        // ac.registerShutdownHook();

        // System.out.println(ac.getBean(SpringBean.class));

        /**
         * 工具类
         */
        MyUtil.show();


    }
}
